#include "condition.h"
#include <stdlib.h>

struct condition *condition_new(struct string *col_name,
                                enum condition_type condition_type,
                                struct string *value) {
  struct condition *C = malloc(sizeof(*C));
  C->col_name = col_name;
  C->condition_type = condition_type;
  C->value = value;
  return C;
}

void condition_free(struct condition *C) {
  string_free(C->col_name);
  string_free(C->value);
  free(C);
}